/*


 */

package jas.http.rpc;

import jas.rpc.RemoteException;
import jas.rpc.RemoteObject;
import jas.rpc.client.RpcClient;
import jas.bank.Account;
import java.util.List;

/**
 *
 *
 */
public class AccountManager_Stub implements AccountManager {
    
    private RpcClient client;
    private RemoteObject obj;
    
    public AccountManager_Stub(RemoteObject obj, RpcClient client) {
        this.client = client;
        this.obj = obj;
    }

    public List<Account> getAccounts() throws RemoteException {
        return client.remoteCall(List.class, obj.getId(), "getAccounts", new Object[0], new Class[0]);
    }

}
